import VueRouter from "vue-router";
import IndexC from "../pages/IndexC.vue";
import NewsC from "../pages/NewsC.vue";
import SportsC from "../pages/SportsC.vue";
import SportsIndex from "../pages/SportsIndex.vue";
import SportsDomestic from "../pages/SportsDomestic.vue";
import SportsAbroad from "../pages/SportsAbroad.vue";

export default new VueRouter({
  routes: [
    {
      path: "/index",
      component: IndexC,
    },
    {
      path: "/news",
      component: NewsC,
    },
    {
      path: "/sports",
      component: SportsC,
      children: [
        {
          path: "index",
          component: SportsIndex,
        },
        {
          path: "domestic",
          component: SportsDomestic,
        },
        {
          path: "abroad",
          component: SportsAbroad,
        },
      ],
    },
  ],
});
